.class public Lcom/xingbook/park/activity/SleepAct;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/media/MediaPlayer$OnCompletionListener;
.implements Landroid/media/MediaPlayer$OnErrorListener;
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lcom/xingbook/d/a;

.field private b:I

.field private c:I

.field private d:Lcom/xingbook/c/n;

.field private e:[Lcn/a/a/c/a;

.field private f:Lcn/a/a/a;

.field private g:I

.field private h:Lcom/xingbook/c/a;

.field private i:Landroid/media/MediaPlayer;

.field private l:Lcn/a/a/a/d;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/4 v0, -0x1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    iput v0, p0, Lcom/xingbook/park/activity/SleepAct;->b:I

    iput v0, p0, Lcom/xingbook/park/activity/SleepAct;->c:I

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/park/activity/SleepAct;->g:I

    return-void
.end method

.method private a()V
    .locals 6

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->a:Lcom/xingbook/d/a;

    invoke-direct {p0}, Lcom/xingbook/park/activity/SleepAct;->b()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->f(I)Lcn/a/a/a/d;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->l:Lcn/a/a/a/d;

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->l:Lcn/a/a/a/d;

    if-eqz v0, :cond_0

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->reset()V

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    iget-object v1, p0, Lcom/xingbook/park/activity/SleepAct;->l:Lcn/a/a/a/d;

    invoke-virtual {v1}, Lcn/a/a/a/d;->a()Ljava/io/FileDescriptor;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/park/activity/SleepAct;->l:Lcn/a/a/a/d;

    invoke-virtual {v2}, Lcn/a/a/a/d;->c()J

    move-result-wide v2

    iget-object v4, p0, Lcom/xingbook/park/activity/SleepAct;->l:Lcn/a/a/a/d;

    invoke-virtual {v4}, Lcn/a/a/a/d;->d()J

    move-result-wide v4

    invoke-virtual/range {v0 .. v5}, Landroid/media/MediaPlayer;->setDataSource(Ljava/io/FileDescriptor;JJ)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->prepare()V

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->start()V
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/SleepAct;->onCompletion(Landroid/media/MediaPlayer;)V

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_0

    :catch_1
    move-exception v0

    goto :goto_0

    :catch_2
    move-exception v0

    goto :goto_0
.end method

.method private b()I
    .locals 9

    const/4 v8, 0x2

    const/4 v1, -0x1

    iget v0, p0, Lcom/xingbook/park/activity/SleepAct;->c:I

    if-gez v0, :cond_4

    iget v0, p0, Lcom/xingbook/park/activity/SleepAct;->b:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/xingbook/park/activity/SleepAct;->b:I

    iget v0, p0, Lcom/xingbook/park/activity/SleepAct;->b:I

    iget v2, p0, Lcom/xingbook/park/activity/SleepAct;->g:I

    if-ne v0, v2, :cond_1

    :cond_0
    :goto_0
    return v1

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->e:[Lcn/a/a/c/a;

    iget v2, p0, Lcom/xingbook/park/activity/SleepAct;->b:I

    aget-object v0, v0, v2

    invoke-virtual {v0}, Lcn/a/a/c/a;->i()Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v0}, Lcn/a/a/c/a;->m()I

    move-result v3

    const/4 v0, 0x0

    if-eq v3, v1, :cond_2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-gt v3, v4, :cond_2

    iput v3, p0, Lcom/xingbook/park/activity/SleepAct;->c:I

    add-int/lit8 v0, v3, -0x1

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/a/a/b/a;

    :cond_2
    if-eqz v0, :cond_3

    invoke-virtual {v0}, Lcn/a/a/b/a;->a()I

    move-result v0

    :goto_1
    move v1, v0

    goto :goto_0

    :cond_3
    move v0, v1

    goto :goto_1

    :cond_4
    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->e:[Lcn/a/a/c/a;

    iget v2, p0, Lcom/xingbook/park/activity/SleepAct;->b:I

    aget-object v0, v0, v2

    invoke-virtual {v0}, Lcn/a/a/c/a;->i()Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_5
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_7

    :cond_6
    iput v1, p0, Lcom/xingbook/park/activity/SleepAct;->c:I

    invoke-direct {p0}, Lcom/xingbook/park/activity/SleepAct;->b()I

    move-result v1

    goto :goto_0

    :cond_7
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/a/a/b/b;

    invoke-virtual {v0}, Lcn/a/a/b/b;->j()I

    move-result v4

    iget v5, p0, Lcom/xingbook/park/activity/SleepAct;->c:I

    if-ne v4, v5, :cond_5

    invoke-virtual {v0}, Lcn/a/a/b/b;->g()[Lcn/a/a/d/c;

    move-result-object v4

    array-length v5, v4

    const/4 v0, 0x0

    move v2, v0

    :goto_2
    if-ge v2, v5, :cond_6

    aget-object v6, v4, v2

    invoke-virtual {v6}, Lcn/a/a/d/c;->c()I

    move-result v0

    if-ne v0, v8, :cond_8

    invoke-virtual {v6}, Lcn/a/a/d/c;->a()I

    move-result v0

    const/4 v7, 0x7

    if-ne v0, v7, :cond_8

    invoke-virtual {v6}, Lcn/a/a/d/c;->b()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/a/a/b/b;

    invoke-virtual {v0}, Lcn/a/a/b/b;->c()I

    move-result v7

    if-ne v7, v8, :cond_8

    invoke-virtual {v6}, Lcn/a/a/d/c;->b()I

    move-result v2

    iput v2, p0, Lcom/xingbook/park/activity/SleepAct;->c:I

    if-eqz v0, :cond_0

    check-cast v0, Lcn/a/a/b/a;

    invoke-virtual {v0}, Lcn/a/a/b/a;->a()I

    move-result v1

    goto/16 :goto_0

    :cond_8
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_2
.end method

.method private c()V
    .locals 7

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->h:Lcom/xingbook/c/a;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->h:Lcom/xingbook/c/a;

    invoke-virtual {v0}, Lcom/xingbook/c/a;->b()V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->a:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->x()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->a:Lcom/xingbook/d/a;

    iget-object v1, p0, Lcom/xingbook/park/activity/SleepAct;->a:Lcom/xingbook/d/a;

    invoke-virtual {v1}, Lcom/xingbook/d/a;->q()Lcn/a/a/a;

    move-result-object v1

    invoke-virtual {v1}, Lcn/a/a/a;->h()Lcn/a/a/i;

    move-result-object v1

    invoke-virtual {v1}, Lcn/a/a/i;->c()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->f(I)Lcn/a/a/a/d;

    move-result-object v4

    if-eqz v4, :cond_1

    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v0

    invoke-virtual {v4}, Lcn/a/a/a/d;->a()Ljava/io/FileDescriptor;

    move-result-object v1

    invoke-virtual {v4}, Lcn/a/a/a/d;->c()J

    move-result-wide v2

    invoke-virtual {v4}, Lcn/a/a/a/d;->d()J

    move-result-wide v4

    const/4 v6, 0x1

    invoke-virtual/range {v0 .. v6}, Lcom/xingbook/c/a;->a(Ljava/io/FileDescriptor;JJZ)V

    :cond_1
    :try_start_0
    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->stop()V
    :try_end_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_2
    :goto_0
    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->release()V

    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method


# virtual methods
.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u661f\u5b9d\u4e66-\u9605\u8bfb\u7761\u7720"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a0200

    if-ne v0, v1, :cond_0

    invoke-static {}, Lcom/xingbook/park/activity/FCViewAct;->a()Lcom/xingbook/park/activity/FCViewAct;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/activity/FCViewAct;->d()V

    invoke-direct {p0}, Lcom/xingbook/park/activity/SleepAct;->c()V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SleepAct;->finish()V

    const v0, 0x7f04001b

    const v1, 0x7f04001f

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/SleepAct;->overridePendingTransition(II)V

    :cond_0
    return-void
.end method

.method public onCompletion(Landroid/media/MediaPlayer;)V
    .locals 2

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->l:Lcn/a/a/a/d;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->l:Lcn/a/a/a/d;

    invoke-virtual {v0}, Lcn/a/a/a/d;->b()V

    :cond_0
    iget v0, p0, Lcom/xingbook/park/activity/SleepAct;->b:I

    iget v1, p0, Lcom/xingbook/park/activity/SleepAct;->g:I

    if-ge v0, v1, :cond_1

    invoke-direct {p0}, Lcom/xingbook/park/activity/SleepAct;->a()V

    :cond_1
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 7
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f03003b

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/SleepAct;->setContentView(I)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SleepAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->d:Lcom/xingbook/c/n;

    const v0, 0x7f0a0200

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/SleepAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    invoke-virtual {v0, p0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SleepAct;->d:Lcom/xingbook/c/n;

    invoke-virtual {v1}, Lcom/xingbook/c/n;->h()Lcom/xingbook/d/a;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/park/activity/SleepAct;->a:Lcom/xingbook/d/a;

    iget-object v1, p0, Lcom/xingbook/park/activity/SleepAct;->a:Lcom/xingbook/d/a;

    iget-object v2, p0, Lcom/xingbook/park/activity/SleepAct;->a:Lcom/xingbook/d/a;

    invoke-virtual {v2}, Lcom/xingbook/d/a;->q()Lcn/a/a/a;

    move-result-object v2

    invoke-virtual {v2}, Lcn/a/a/a;->h()Lcn/a/a/i;

    move-result-object v2

    invoke-virtual {v2}, Lcn/a/a/i;->e()I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/xingbook/d/a;->j(I)Landroid/graphics/Bitmap;

    move-result-object v1

    if-eqz v1, :cond_2

    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v3, 0x10

    if-lt v2, v3, :cond_1

    new-instance v2, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SleepAct;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-direct {v2, v3, v1}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->a:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->q()Lcn/a/a/a;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->f:Lcn/a/a/a;

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->f:Lcn/a/a/a;

    invoke-virtual {v0}, Lcn/a/a/a;->f()[Lcn/a/a/c/a;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->e:[Lcn/a/a/c/a;

    const v0, 0x7f0a0201

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/SleepAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ViewFlipper;

    const v1, 0x7f040001

    invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ViewFlipper;->setOutAnimation(Landroid/view/animation/Animation;)V

    const/high16 v1, 0x7f04

    invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ViewFlipper;->setInAnimation(Landroid/view/animation/Animation;)V

    const/16 v1, 0xfa0

    invoke-virtual {v0, v1}, Landroid/widget/ViewFlipper;->setFlipInterval(I)V

    invoke-virtual {v0}, Landroid/widget/ViewFlipper;->startFlipping()V

    new-instance v0, Landroid/media/MediaPlayer;

    invoke-direct {v0}, Landroid/media/MediaPlayer;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setAudioStreamType(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setLooping(Z)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    invoke-virtual {v0, p0}, Landroid/media/MediaPlayer;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->i:Landroid/media/MediaPlayer;

    invoke-virtual {v0, p0}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->f:Lcn/a/a/a;

    invoke-virtual {v0}, Lcn/a/a/a;->i()I

    move-result v0

    iput v0, p0, Lcom/xingbook/park/activity/SleepAct;->g:I

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->a:Lcom/xingbook/d/a;

    iget-object v1, p0, Lcom/xingbook/park/activity/SleepAct;->f:Lcn/a/a/a;

    invoke-virtual {v1}, Lcn/a/a/a;->h()Lcn/a/a/i;

    move-result-object v1

    invoke-virtual {v1}, Lcn/a/a/i;->f()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->f(I)Lcn/a/a/a/d;

    move-result-object v4

    if-eqz v4, :cond_0

    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->h:Lcom/xingbook/c/a;

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->h:Lcom/xingbook/c/a;

    invoke-virtual {v4}, Lcn/a/a/a/d;->a()Ljava/io/FileDescriptor;

    move-result-object v1

    invoke-virtual {v4}, Lcn/a/a/a/d;->c()J

    move-result-wide v2

    invoke-virtual {v4}, Lcn/a/a/a/d;->d()J

    move-result-wide v4

    const/4 v6, 0x1

    invoke-virtual/range {v0 .. v6}, Lcom/xingbook/c/a;->a(Ljava/io/FileDescriptor;JJZ)V

    :cond_0
    invoke-direct {p0}, Lcom/xingbook/park/activity/SleepAct;->a()V

    return-void

    :cond_1
    new-instance v2, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SleepAct;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-direct {v2, v3, v1}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_0

    :cond_2
    const v1, 0x7f020026

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundResource(I)V

    goto/16 :goto_0
.end method

.method protected onDestroy()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SleepAct;->a:Lcom/xingbook/d/a;

    invoke-virtual {v0}, Lcom/xingbook/d/a;->u()Lcom/xingbook/b/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/b/b;->b()V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onDestroy()V

    return-void
.end method

.method public onError(Landroid/media/MediaPlayer;II)Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    invoke-static {}, Lcom/xingbook/park/activity/FCViewAct;->a()Lcom/xingbook/park/activity/FCViewAct;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/activity/FCViewAct;->d()V

    invoke-direct {p0}, Lcom/xingbook/park/activity/SleepAct;->c()V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SleepAct;->finish()V

    const v0, 0x7f04001b

    const v1, 0x7f04001f

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/SleepAct;->overridePendingTransition(II)V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SleepAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SleepAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method
